home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970929-19971216 / 000264_news@newsmaster….columbia.edu _Sat Nov 15 12:19:14 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA27816
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 15 Nov 1997 12:19:14 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA13211
  7.     for kermit.misc@watsun; Sat, 15 Nov 1997 12:19:14 -0500 (EST)
  8. Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!jrd
  9. From: jrd@cc.usu.edu (Joe Doupnik)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Help with scripting kermit
  12. Message-ID: <0$k2Rz1fk$EP@cc.usu.edu>
  13. Date: 15 Nov 97 09:56:15 MDT
  14. References: <64j0bn$7s9$1@clem.mscd.edu>
  15. Organization: Utah State University
  16. Lines: 46
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:8049
  18.  
  19. In article <64j0bn$7s9$1@clem.mscd.edu>, NICE KERRY <nice@mscd.edu> writes:
  20. > Hi,
  21. > I am having trouble getting getting kermit scripting to work.  The thing
  22. > that I would like to do is have a script run by crontab to dial up 
  23. > this account, download some files, and then delete them.  It seems like
  24. > I can do this stuff when I am at the keyboard, but it seems to stick 
  25. > when it is in a script.  
  26. > Here is the script that sort of works:
  27. > set modem hayes
  28. > set line /dev/modem
  29. > set speed 19200
  30. > set parity none
  31. > set dial timeout 60
  32. > dial XXX-XXXX\13
  33. > input 60 CONNECT
  34. > pause 1
  35. > ;connect
  36. > output \0
  37. > output " "\13
  38.     Did you mean a space here? If so { } would be a cleaner approach
  39. > output \13
  40. > output 1\13
  41. > output nice\13
  42. > output XXXXXXX\13
  43. > output cd mail \13
  44. > output ls -l\13
  45. > output logout\13
  46. > output 20\13
  47. >
  48.     What's likely the problem is the sequence of OUTPUT statments
  49. blasts their strings at the host with no time delay. It may very well
  50. be the host is not prepared to hear that material until later, as it
  51. progresses through the login steps. Thus you have two standard options:
  52. either insert PAUSE's, or better do INPUT commands to seek host responses
  53. step by step. In other words, at each step wait for the host to indicate
  54. it is ready for that string. Looking for the host prompt string is one
  55. quick pattern to wait upon.
  56.     These items and many more, full illustrated, are in the user's
  57. manual for C Kermit. Just type HELP at the CKermit prompt to obtain the
  58. book's name and ordering information.
  59.     Joe D.
  60.